package main

import (
	"context"
	"wms-go/modules/m_config"
	"wms-go/modules/m_db"
	"wms-go/modules/m_log"
	"wms-go/web/w_mapper"
	"wms-go/web/w_model"
	"wms-go/web/w_router"
)

func main() {
	m_log.ZapInit()
	m_config.ConfigInit()
	m_db.InitDB()
	mapperKc := w_mapper.KcMapper{
		DB:  m_db.GetDB(),
		Ctx: context.Background(),
	}
	modelKc := new(w_model.SKc)
	modelKc.HwID = "123123123123123"
	modelKc.SkuID = "werwerwerewr"
	_, err := mapperKc.Create(modelKc)
	if err != nil {
		//m_log.Slogger.Info("sdfasdfsf", modelKc)
	} else {
		//m_log.Slogger.Info(err.Error())
	}
	w_router.WebRouterInit()
}
